<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>后台管理面板</title>
  <!-- 告诉浏览器该页面是自适应布局 -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <include file="common/top" />
</head>
<body class="hold-transition skin-blue sidebar-mini">	
<div class="wrapper">
    <div class="content-wrapper" style="margin-left: 0 !important;">
        <!--页眉-->
        <section class="content-header">
          <h1>{{$info?'修改':'添加'}}表单字段</h1>
        </section>
        <!--内容开始-->
        <section class="content">
            <div class="search">
            	<form class="form-inline" action="{{:url('index')}}">
                 <input class="btn btn-flat btn-primary m_10_l_0" onclick="location.href='{{:url('index')}}'" type="button" value="显示全部">
                 <a class="btn btn-flat btn-success m_10 f_r" onclick="javascript :history.back(-1)"><i class="fa fa-undo m-r-10"></i>返 回</a>  
            	</form> 
            </div>
            <!--数据表开始-->
             <div class="row">
                <div class="col-xs-12">
                	<div class="box box-body">
                		<if condition='$info'>
                		<form method="post" action="{{:url('fieldEditPost')}}">
                			<input type="hidden" name="id" value="{{$info.id}}"/>
                            <input type="hidden" name="oldfield" value="{{$info.field}}"/>
                            <input type="hidden" name="type" value="{{$info.type}}"/>
                		<else />
                		<form method="post" action="{{:url('fieldAddPost')}}">
                		</if>
                        	<input type="hidden" name="fcode" value="{{$fcode}}"/>
		                	<!---->
		                	<div class="row dd_input_group">
			                	<div class="form-group">
				                  <label class="col-sm-1 col-xs-4 control-label dd_input_l">字段名</label>
				                  <div class="col-sm-4 col-xs-8">
				                    <input type="text" name="field" class="form-control" placeholder="必填：字段名" value="{{$info.field?$info.field:''}}">
				                  </div>
				                </div>
			                </div>
			                <!---->
		                	<div class="row dd_input_group">
			                	<div class="form-group">
				                  <label class="col-sm-1 col-xs-4 control-label dd_input_l">字段简介</label>
				                  <div class="col-sm-4 col-xs-8">
				                    <input type="text" name="name" class="form-control" placeholder="必填：字段简介" value="{{$info.name?$info.name:''}}">
				                  </div>
				                </div>
			                </div>
			                <!---->
                      		<div class="row dd_input_group">
			                	<div class="form-group">
				                  <label class="col-sm-1 col-xs-4 control-label dd_input_l">是否必填</label>
				                  <div class="col-sm-4 col-xs-8">
				                  	<div class="dd_radio_lable_left">
                                        <label class="dd_radio_lable">
                                          <input type="radio" name="isrequire" value="1" class="dd_radio" {{$info.isrequire==1?'checked':''}}><span>是</span>
                                        </label>
                                        <label class="dd_radio_lable">
                                          <input type="radio" name="isrequire" value="0" class="dd_radio" {{$info.isrequire==0?'checked':''}}><span>否</span>
                                        </label>
	                         		 </div>  
				                  </div>
				                </div>
			                </div>
                    	    <!---->
			                <div class="row dd_input_group">
			                	<div class="form-group">
				                  <label class="col-sm-1 col-xs-4 control-label"></label>
				                  <div class="col-sm-4 col-xs-8">
				                    	<button type="submit" class="btn btn-flat btn-primary ">提 交</button> 
				                    	<button type="button" class="btn btn-flat btn-default" onclick="javascript :history.back(-1)">返 回</button>
				                  </div>
		
				                </div>
			                </div>
                		</form>
                 </div>
                  <!-- /.box -->
                </div>
              </div>
            <!--数据表结束-->
        </section>
        <!-- right col -->
      </div>
      <!-- /.row (main row) -->

    </section>
        <!--内容结束-->
    </div>
</div>
  <include file="common/bottom" />
</body>
</html>    